package com.huawei.appgallery.forum.message.card;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import com.huawei.appgallery.forum.base.card.ForumCard;
import o.azb;
import o.bvj.b;
import o.bvj.d;
import o.cgz;
import o.epv;

public class ForumLauncherMsgTipCard extends ForumCard {
    public ForumLauncherMsgTipCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        int ॱ;
        int i;
        ʽ(view);
        RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(b.ˊˊ);
        ImageView imageView = (ImageView) view.findViewById(b.ˊˋ);
        if (ˊ()) {
            ॱ = ((epv.ॱ(this.ʼॱ) - epv.ॱ()) - this.ʼॱ.getResources().getDimensionPixelSize(d.ͺ)) / 2;
            i = (int) (((float) ॱ) * 1.5f);
        } else {
            i = azb.ॱ(this.ʼॱ);
            ॱ = (int) (((float) i) / 1.5f);
        }
        LayoutParams layoutParams = (LayoutParams) imageView.getLayoutParams();
        layoutParams.width = i;
        layoutParams.height = ॱ;
        ((LinearLayout.LayoutParams) relativeLayout.getLayoutParams()).height = ॱ;
        return this;
    }
}
